<?php
$this->placeholder('formHeadline')->set($this->GetTranslation('My Dashboard'));
?>
<fieldset class="formColumn">
    <legend><?php echo $this->GetTranslation('My Account');?></legend>
    <form action="/admin/user/update-my-account" method="POST">
	<?php
	    echo $this->formHidden('id',0);
	    echo $this->FormRow($this->GetTranslation('First Name'), $this->formText('first_name' , $this->identity->first_name));
	    echo $this->FormRow($this->GetTranslation('Last Name'), $this->formText('last_name', $this->identity->last_name));
	    echo $this->FormRow($this->GetTranslation('Email'), $this->formText('email', $this->identity->email));
	    echo $this->FormRow($this->formCheckbox('update_password'), $this->GetTranslation('Update password?'));
	    echo $this->FormRow($this->GetTranslation('Password'), $this->formPassword('password'));
	    echo $this->FormRow($this->GetTranslation('Confirm'), $this->formPassword('confirmation'));
	    echo $this->formSubmit('submit',$this->GetTranslation('Update My Account'));
	?>    
	</form>

</fieldset>

<fieldset class="formColumn">
    <legend><?php echo $this->GetTranslation('My Bookmarks');?></legend>
    <?php if($this->bookmarks){?>
    <ul>
    <?php foreach ($this->bookmarks as $bookmark){?>
        <li><a href="/admin/index/delete-bookmark/id/<?php echo $bookmark->id;?>">[x]</a> <a href="/<?php echo $this->CleanUri($bookmark->content, true, true);?>"><?php echo $bookmark->node;?></a></li>
    <?php } ?>
    </ul>
    <?php }else{
            echo $this->GetTranslation('You do not have any bookmarks.');
    } ?>
</fieldset>

<fieldset class="clearBoth">
    <legend><?php echo $this->GetTranslation('My Writeboard');?></legend>
    <p><?php echo $this->GetTranslation('The writeboard is a personal spot for you to keep notes about your site.');?></p>
    <form action="/admin/index/notes" method="POST" id="notes">
        <?php 
            echo $this->formTextarea('content', $this->notes->content);
            echo $this->formSubmit('submit',$this->GetTranslation('Save My Writeboard'));
        ?>
    </form>    
</fieldset>


